"""
@author: xiangping
@contact: xiangpingbu@gmail.com
@time: 2020/1/9 2:15 下午
@file: iron_exception
@Desc:
"""


class GaoLuInitException(Exception):
    def __init__(self, e=None, message="init_exception"):
        self.e = e
        self.message = message


class ParamDupException(Exception):
    def __init__(self, e=None, message="duplicated params"):
        self.e = e
        self.message = message


class TimeoutException(Exception):
    def __init__(self, e=None, message="ironman timeout"):
        self.e = e
        self.message = message


class SqlLabException(Exception):
    def __init__(self, e=None, message="iSqlLabException"):
        self.e = e
        self.message = message


class SqlLabSecurityException(SqlLabException):
    pass


class SqlLabTimeoutException(SqlLabException):
    pass


class AbnormalValueException(Exception):
    def __init__(self, e=None, message="abnormal value"):
        self.e = e
        self.message = message
